home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / Interapplication Communication / AE Interfaces / RIncludes / AEUserTermTypes.r < prev    next >
Encoding:
Text File  |  1993-12-08  |  9.2 KB  |  242 lines  |  [TEXT/MPS ]

  1. ////////////////////////////////////////////////////////////////////////////////
  2. // Copyright © 1992 Apple Computer, Inc. All rights reserved.
  3. ////////////////////////////////////////////////////////////////////////////////
  4.  
  5. /* Resource Descriptions for                                    */
  6. /* Apple Event User Terminology Resources                        */
  7.  
  8. #ifndef __AEUSERTERMTYPES__
  9. #define __AEUSERTERMTYPES__ 1
  10.  
  11. #include "SysTypes.r"
  12. #define kAEUserTerminology            'aeut'
  13. #define kAETerminologyExtension        'aete'
  14. #define kAEScriptingSizeResource    'scsz'
  15.  
  16.  
  17. // "reserved" needs to be defined to be false for resources
  18. //   but undef'ed for type definitions.  We preserve its state
  19. //   and undef it here.
  20.  
  21. #undef reserved
  22.  
  23. /* Description of the Apple Event User Terminology resource        */
  24. /* This resource is provided by Apple Computer, Inc.            */
  25. type kAEUserTerminology {
  26.         hex byte;                                            /* major version in BCD        */
  27.         hex byte;                                            /* minor version in BCD        */
  28.         integer        Language, english = 0, japanese = 11;    /* language code            */
  29.         integer        Script, roman = 0;                        /* script code                */
  30.         integer = $$Countof(Suites);
  31.         array Suites {
  32.                 pstring;                                    /* suite name                */
  33.                 pstring;                                    /* suite description        */
  34.                 align word;                                    /* alignment                */
  35.                 literal longint;                            /* suite ID                    */
  36.                 integer;                                    /* suite level                */
  37.                 integer;                                    /* suite version            */
  38.                 integer = $$Countof(Events);
  39.                 array Events {
  40.                     pstring;                                /* event name                */
  41.                     pstring;                                /* event description        */
  42.                     align word;                                /* alignment                */
  43.                     literal longint;                        /* event class                */
  44.                     literal longint;                        /* event ID                    */
  45.                     literal longint        noReply = 'null';    /* reply type                */
  46.                     pstring;                                /* reply description        */
  47.                     align word;                                /* alignment                */
  48.                     boolean    replyRequired,                    /* if the reply is          */
  49.                             replyOptional;                    /*   required               */
  50.                     boolean singleItem,                        /* if the reply must be a   */
  51.                             listOfItems;                    /*   list                    */                                        
  52.                     boolean notEnumerated,                    /* if the type is            */
  53.                             enumerated;                        /*     enumerated                */
  54.                     boolean    notTightBindingFunction,        /* if the message has tight    */
  55.                             tightBindingFunction;            /*   binding precedence        */
  56.                     boolean    reserved;                        /* these 13 bits are         */
  57.                     boolean    reserved;                        /*   reserved; set them        */
  58.                     boolean    reserved;                        /*   to "reserved"             */
  59.                     boolean    reserved;
  60.                 /* the following bits are reserved for localization */
  61.                     boolean    reserved;
  62.                     boolean    reserved;
  63.                     boolean    reserved;
  64.                     boolean    reserved;
  65.                     boolean    verbEvent,                        /* for Japanese; nonVerb    */
  66.                             nonVerbEvent;                    /*  is used as an expr v.s. */
  67.                                                             /*  v.s. verb is a command  */
  68.                         /* the following 3 bits are considered as a part of look up key */
  69.                     boolean    reserved;    
  70.                     boolean    reserved;
  71.                     boolean    reserved;
  72.                     literal longint        noDirectParam = 'null',
  73.                                         noParams ='null';    /* direct param type        */
  74.                     pstring;                                /* direct param description    */
  75.                     align word;                                /* alignment                */
  76.                     boolean    directParamRequired,            /* if the direct param         */
  77.                             directParamOptional;            /*   is required              */
  78.                     boolean singleItem,                        /* if the param must be a   */
  79.                             listOfItems;                    /*   list                    */                                        
  80.                     boolean notEnumerated,                    /* if the type is            */
  81.                             enumerated;                        /*     enumerated                */
  82.                     boolean    doesntChangeState,                /* if the event changes     */
  83.                             changesState;                    /*   server's state            */
  84.                     boolean    reserved;                        /* these 12 bits are         */
  85.                     boolean    reserved;                        /*   reserved; set them        */
  86.                     boolean    reserved;                        /*   to "reserved"             */
  87.                     boolean    reserved;
  88.                     boolean    reserved;
  89.                     boolean    reserved;
  90.                     boolean    reserved;
  91.                     boolean    reserved;
  92.                     boolean    reserved;
  93.                     boolean    reserved;
  94.                     boolean    reserved;
  95.                     boolean    reserved;
  96.                     integer = $$Countof(OtherParams);
  97.                     array OtherParams {
  98.                         pstring;                            /* parameter name            */
  99.                         align word;                            /* alignment                */
  100.                         literal longint;                    /* parameter keyword        */
  101.                         literal longint;                    /* parameter type            */
  102.                         pstring;                            /* parameter description    */
  103.                         align word;                            /* alignment                */
  104.                         boolean    required,
  105.                                 optional;                    /* if param is optional        */
  106.                         boolean singleItem,                    /* if the param must be a   */
  107.                                 listOfItems;                /*   list                    */                                        
  108.                         boolean notEnumerated,                /* if the type is            */
  109.                                 enumerated;                    /*     enumerated                */
  110.                         boolean reserved;
  111.                         boolean    reserved;                    /* these bits are             */
  112.                         boolean    reserved;                    /*   reserved; set them        */
  113.                         boolean    reserved;                    /*   to "reserved"             */
  114.                         boolean    reserved;
  115.                     /* the following bits are reserved for localization */
  116.                         boolean    reserved;
  117.                         boolean    reserved;
  118.                         boolean    reserved;
  119.                         boolean    reserved;
  120.                         boolean    prepositionParam,            /* for Japanese; labeled     */
  121.                                 labeledParam;                /*  param name comes before */
  122.                                                             /*  the param value            */
  123.                             /* the following 3 bits are considered as a part of look up key */
  124.                         boolean    notFeminine,                /* feminine                    */
  125.                                 feminine;
  126.                         boolean    notMasculine,                /* masculine                */    
  127.                                 masculine;                    
  128.                         boolean    singular,
  129.                                 plural;                        /* plural                    */
  130.                     };
  131.                 };
  132.                 integer = $$Countof(Classes);
  133.                 array Classes {
  134.                     pstring;                                /* class name                */
  135.                     align word;                                /* alignment                */
  136.                     literal longint;                        /* class ID                    */
  137.                     pstring;                                /* class description        */
  138.                     align word;                                /* alignment                */
  139.                     integer = $$Countof(Properties);
  140.                     array Properties {
  141.                         pstring;                            /* property name            */
  142.                         align word;                            /* alignment                */
  143.                         literal longint;                    /* property ID                */
  144.                         literal longint;                    /* property class            */
  145.                         pstring;                            /* property description        */
  146.                         align word;                            /* alignment                */
  147.                         boolean    reserved;                    /* reserved                    */
  148.                         boolean singleItem,                    /* if the property must be  */
  149.                                 listOfItems;                /*   a list                    */                                        
  150.                         boolean notEnumerated,                /* if the type is            */
  151.                                 enumerated;                    /*     enumerated                */
  152.                         boolean    readOnly,                    /* can only read it            */
  153.                                 readWrite;                    /* can read or write it        */
  154.                         boolean    reserved;                    /* these 12 bits are         */
  155.                         boolean    reserved;                    /*   reserved; set them        */
  156.                         boolean    reserved;                    /*   to "reserved"             */
  157.                         boolean    reserved;
  158.                 /* the following bits are reserved for localization */
  159.                         boolean    reserved;
  160.                         boolean    reserved;
  161.                         boolean    reserved;
  162.                         boolean    reserved;
  163.                         boolean    noApostrophe,    /* This bit is special to the French dialect */
  164.                                 apostrophe;        /* It indicates that the name begins */
  165.                                                 /* with a vowel */
  166.                             /* the following 3 bits are considered as a part of look up key */
  167.                                         /* what if both feminine and masculine? */
  168.                             /* the following 3 bits are considered as a part of look up key */
  169.                         boolean    notFeminine,                /* feminine                    */
  170.                                 feminine;
  171.                         boolean    notMasculine,                /* masculine                */    
  172.                                 masculine;                    
  173.                         boolean    singular,
  174.                                 plural;                        /* plural                    */
  175.                     };
  176.                     integer = $$Countof(Elements);
  177.                     array Elements {
  178.                         literal longint;                    /* element class            */
  179.                         integer = $$Countof(KeyForms);
  180.                         array KeyForms {                    /* list of key forms        */
  181.                             literal longint
  182.                             formAbsolutePosition = 'indx',
  183.                             formName = 'name';                /* key form ID                */
  184.                         };
  185.                     };
  186.                 };
  187.                 integer = $$Countof(ComparisonOps);
  188.                 array ComparisonOps {
  189.                     pstring;                                /* comparison operator name    */
  190.                     align word;                                /* alignment                */
  191.                     literal longint;                        /* comparison operator ID    */
  192.                     pstring;                                /* comparison comment        */
  193.                     align word;                                /* alignment                */
  194.                 };
  195.                 integer = $$Countof(Enumerations);
  196.                 array Enumerations {                        /* list of Enumerations        */
  197.                     literal longint;                        /* Enumeration ID            */
  198.                     integer = $$Countof(Enumerators);
  199.                     array Enumerators {                        /* list of Enumerators        */
  200.                         pstring;                            /* Enumerator name            */
  201.                         align word;                            /* alignment                */
  202.                         literal longint;                    /* Enumerator ID            */
  203.                         pstring;                            /* Enumerator comment        */
  204.                         align word;                            /* alignment                */
  205.                     };
  206.                 };
  207.             };
  208.         };
  209.  
  210. /* Description of the Apple Event Terminology Extension resource        */
  211. /* This resource is provided by your application                        */
  212.  
  213. type kAETerminologyExtension as kAEUserTerminology;
  214.  
  215. type kAEScriptingSizeResource {
  216.     boolean                dontReadExtensionTerms,    readExtensionTerms, dontLaunchToGetTerminology = 0, launchToGetTerminology = 1;
  217.     boolean                findAppBySignature,        dontFindAppBySignature;
  218.     boolean                dontAlwaysSendSubject,    alwaysSendSubject;
  219.     boolean                reserved;
  220.     boolean                reserved;
  221.     boolean                reserved;
  222.     boolean                reserved;
  223.     boolean                reserved;
  224.     boolean                reserved;
  225.     boolean                reserved;
  226.     boolean                reserved;
  227.     boolean                reserved;
  228.     boolean                reserved;
  229.     boolean                reserved;
  230.     boolean                reserved;
  231.     boolean                reserved;
  232.     /* Memory sizes are in bytes. Zero means use default. */
  233.     unsigned longint    minStackSize;
  234.     unsigned longint    preferredStackSize;
  235.     unsigned longint    maxStackSize;
  236.     unsigned longint    minHeapSize;
  237.     unsigned longint    preferredHeapSize;
  238.     unsigned longint    maxHeapSize;    
  239. };
  240.  
  241. #define reserved false
  242. #endif